package com.hyt.it.ogt.ks.model.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 考生考试操作轨迹，包括作答日志、登录、提交答案、切换屏幕、复制粘贴等
 * </p>
 *
 * @author chengxh
 * @since 2020-06-17
 */
@Data
@Builder
@Accessors(chain = true)
@TableName("ks_candidate_log")
@ApiModel(value="CandidateLog对象", description="考生考试操作轨迹，包括作答日志、登录、提交答案、切换屏幕、复制粘贴等")
@NoArgsConstructor
@AllArgsConstructor
public class CandidateLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty(value = "考试项目id")
    private String examId;

    @ApiModelProperty(value = "考生准考号")
    private String candidateId;

    @ApiModelProperty(value = "操作小题ID")
    private String itemId;

    @ApiModelProperty(value = "父小题ID")
    private String parentItemId;

    @ApiModelProperty(value = "小题乱序号")
    private Integer itemMixSort;

    private String itemType;
    /**
     * 操作类型定义 CandidateLogOperateType
     */
    @ApiModelProperty(value = "轨迹操作类型")
    private Integer operateType;

    @ApiModelProperty(value = "操作内容")
    private String operateContent;

    @ApiModelProperty(value = "计算机ip")
    private String ip;

    @ApiModelProperty(value = "进入小题时间")
    private LocalDateTime beginTime;

    @ApiModelProperty(value = "离开小题时间")
    private LocalDateTime endTime;

    private Long takeTime;

    private Integer eventType;
}
